package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 车辆信息对象 tbl_car
 * 
 * @author zbb
 * @date 2023-02-13
 */
public class Car extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 车辆ID */
    private Long carId;

    /** 车牌号码 */
    @Excel(name = "车牌号码")
    private String carNum;

    /** 号牌种类 */
    @Excel(name = "号牌种类")
    private String carNumType;

    /** 号牌颜色 */
    @Excel(name = "号牌颜色")
    private String carNumColour;

    /** 车辆型号 */
    @Excel(name = "车辆型号")
    private String carModel;

    /** 车辆状态 */
    @Excel(name = "车辆状态")
    private String carState;

    /** 发动机号 */
    @Excel(name = "发动机号")
    private String carEngineNum;

    /** 车辆类型 */
    @Excel(name = "车辆类型")
    private String carType;

    /** 车身颜色 */
    @Excel(name = "车身颜色")
    private String carColour;

    /** 机动车所有人 */
    @Excel(name = "机动车所有人")
    private String carOwner;

    /** 车辆品牌 */
    @Excel(name = "车辆品牌")
    private String carBrand;

    /** 身份证号码 */
    @Excel(name = "身份证号码")
    private String ownerNum;

    /** 身份证明名称 */
    @Excel(name = "身份证明名称")
    private String ownerName;

    /** 事故次数 */
    @Excel(name = "事故次数")
    private Integer accidentsNum;

    /** 违法次数 */
    @Excel(name = "违法次数")
    private Integer violationsNum;

    /** 最近定验日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最近定验日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date latestCheckDate;

    public void setCarId(Long carId) 
    {
        this.carId = carId;
    }

    public Long getCarId() 
    {
        return carId;
    }
    public void setCarNum(String carNum) 
    {
        this.carNum = carNum;
    }

    public String getCarNum() 
    {
        return carNum;
    }
    public void setCarNumType(String carNumType) 
    {
        this.carNumType = carNumType;
    }

    public String getCarNumType() 
    {
        return carNumType;
    }
    public void setCarNumColour(String carNumColour) 
    {
        this.carNumColour = carNumColour;
    }

    public String getCarNumColour() 
    {
        return carNumColour;
    }
    public void setCarModel(String carModel) 
    {
        this.carModel = carModel;
    }

    public String getCarModel() 
    {
        return carModel;
    }
    public void setCarState(String carState) 
    {
        this.carState = carState;
    }

    public String getCarState() 
    {
        return carState;
    }
    public void setCarEngineNum(String carEngineNum) 
    {
        this.carEngineNum = carEngineNum;
    }

    public String getCarEngineNum() 
    {
        return carEngineNum;
    }
    public void setCarType(String carType) 
    {
        this.carType = carType;
    }

    public String getCarType() 
    {
        return carType;
    }
    public void setCarColour(String carColour) 
    {
        this.carColour = carColour;
    }

    public String getCarColour() 
    {
        return carColour;
    }
    public void setCarOwner(String carOwner) 
    {
        this.carOwner = carOwner;
    }

    public String getCarOwner() 
    {
        return carOwner;
    }
    public void setCarBrand(String carBrand) 
    {
        this.carBrand = carBrand;
    }

    public String getCarBrand() 
    {
        return carBrand;
    }
    public void setOwnerNum(String ownerNum) 
    {
        this.ownerNum = ownerNum;
    }

    public String getOwnerNum() 
    {
        return ownerNum;
    }
    public void setOwnerName(String ownerName) 
    {
        this.ownerName = ownerName;
    }

    public String getOwnerName() 
    {
        return ownerName;
    }
    public void setAccidentsNum(Integer accidentsNum) 
    {
        this.accidentsNum = accidentsNum;
    }

    public Integer getAccidentsNum() 
    {
        return accidentsNum;
    }
    public void setViolationsNum(Integer violationsNum) 
    {
        this.violationsNum = violationsNum;
    }

    public Integer getViolationsNum() 
    {
        return violationsNum;
    }
    public void setLatestCheckDate(Date latestCheckDate) 
    {
        this.latestCheckDate = latestCheckDate;
    }

    public Date getLatestCheckDate() 
    {
        return latestCheckDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("carId", getCarId())
            .append("carNum", getCarNum())
            .append("carNumType", getCarNumType())
            .append("carNumColour", getCarNumColour())
            .append("carModel", getCarModel())
            .append("carState", getCarState())
            .append("carEngineNum", getCarEngineNum())
            .append("carType", getCarType())
            .append("carColour", getCarColour())
            .append("carOwner", getCarOwner())
            .append("carBrand", getCarBrand())
            .append("ownerNum", getOwnerNum())
            .append("ownerName", getOwnerName())
            .append("accidentsNum", getAccidentsNum())
            .append("violationsNum", getViolationsNum())
            .append("latestCheckDate", getLatestCheckDate())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
